import { App } from "astal/gtk4";
import { GLib } from "astal";

import style from "./style/main.scss";
import Bar from "./widget/Bar/main";
import { monitorColorsChange } from "./utils/monitor";

App.start({
  css: style,
  icons: `${GLib.getenv("HOME")}/.config/ags/assets/`,
  main() {
    App.get_monitors().map(Bar);
    monitorColorsChange();
  },
});
